<?php

class db
{

	function __construct()
	{


	}

	function __destruct()
	{
	}

	static function string($str)
	{
	    $str = str_replace("\\", "\\\\", $str);
	    $str = str_replace("'", "\\'", $str);
	   // $str = mb_convert_encoding($str, "UTF-8", "Windows-1251");
		return "'{$str}'";
	}
}
?>